<?php

namespace App\Controller;

class UserController
{

    public function __construct($config = [])
    {
        echo time() . '===';
    }

    public function index()
    {
        echo 'user.index';
    }

    public function show($id)
    {
        echo 'demo,user:'.$id;
    }

    public static function __callStatic($name, $arguments)
    {
        (new self())->$name($arguments);
    }

}